import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while (sc.hasNext()){
            int n=sc.nextInt();
            int a=5;
            int b=0;
            int c=0;
            for (int i = 2; i <= n; i++) {
                c=a*5/4;
                a=c+1;
                b++;
            }
            System.out.println(a+" "+b);
        }
    }
}
